package com.myproject.myblogserver.mapper;

import com.myproject.myblogserver.dto.blog.BlogPreviewDto;
import com.myproject.myblogserver.entity.Blog;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 博客表 Mapper 接口
 * </p>
 *
 * @author jiangweike
 * @since 2025-01-12
 */
public interface BlogMapper extends BaseMapper<Blog> {
    Page<BlogPreviewDto> searchBlogs(
            @Param("page") Page<BlogPreviewDto> page,
            @Param("keywords") List<String> keywords // 参数名改为复数形式
    );
}
